package com.entrogy.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName SalaryTemplateDataEntity
 * @Description 工资条组成实体类
 * @Author luoxingjiang
 * @Date 2019/8/27 0027 下午 1:44
 * @Version 1.0
 **/
@SuppressWarnings("serial")
@AllArgsConstructor
@NoArgsConstructor
@Data
@Accessors(chain = true)
public class SalaryComposeEntity {


    //自增id
    private Integer id;

    //所属工资条模板id
    private Integer salarySlipTemplateId;

    //创建时间
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    //更新时间
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    //工资条组成名称
    private String salaryComposeName;

    private Integer enable;




}
